package com.ls.blog.api;

import com.ls.blog.vo.CommentsVo;
import com.ls.blog.vo.params.CommentParam;
import com.ls.blog.vo.params.CommentsParam;

import java.util.List;
import java.util.Map;

/**
 * @program: myblog
 * @author: lishun
 * @create: 2021-07-10 17:15
 **/
public interface CommentsService {

    /**
     * 根据文章id获得对应的评论vo信息
     * @param param
     * @return
     */
    Map<String,Object> showComments(CommentsParam param) throws Exception;

    void comment(CommentParam commentParam);


    /**
     * 二级分页评论
     * @param current
     * @param id
     * @return
     */
    List<CommentsVo> secondComments(Long current,Long id) throws Exception;
}
